package cn.com.haopy.dataes.es.entity;

import cn.easyes.annotation.IndexField;
import cn.easyes.annotation.IndexId;
import cn.easyes.annotation.IndexName;
import cn.easyes.annotation.rely.FieldType;
import cn.easyes.annotation.rely.IdType;
import lombok.Data;
import org.joda.time.LocalDate;


@Data
@IndexName("hos_patient")
public class EsPatient {

    @IndexId(type = IdType.CUSTOMIZE)
    private Integer id;

    private String idcardType;

    private String idcardNo;

    private String name;

    private Short gender;

    @IndexField(fieldType = FieldType.DATE, dateFormat = "yyyy-MM-dd HH:mm:ss||yyyy-MM-dd||epoch_millis")
    private LocalDate birthdate;

    private String mobile;

    private String nation;


}
